﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace System.Models.Models
{
    /// <summary>
    /// 在线调查信息表
    /// </summary>
    [Table("T_Onlin_Survey")]
    public class OnlinSurvey:BaseEntity
    {
        /// <summary>
        /// 调查标题
        /// </summary>
        [Required, Column(TypeName = "varchar"), StringLength(100)]
        public string SurveyTitle { get; set; }
        /// <summary>
        /// 调查内容
        /// </summary>
        [Required, Column(TypeName = "varchar"), StringLength(255)]
        public string SurveyContent { get; set; }
        /// <summary>
        /// 截止时间
        /// </summary>
        public DateTime? DeadlineTime { get; set; }
        /// <summary>
        /// 是否发布
        /// </summary>
        [Required]
        public bool IsPublish { get; set; } = false;
        /// <summary>
        /// 问卷URL
        /// </summary>
        [Column(TypeName = "varchar"), StringLength(100)]
        public string ForUrl { get; set; }
        [Column(TypeName = "varchar"), StringLength(100)]
        public string SurveyUrl { get; set; }
    }
}
